{extend name="index/index"/}

{block name="body"}
<script type="text/javascript">
    $(document).ready(common_obj.form_submit);
</script>

<header class="tab-head">
    <ul class="nav nav-tabs">
        <li class="">
            <a href="{:url('Integral/log')}">积分日志</a>
        </li>
        <li class="active">
            <a href="{:url('Integral/integraladd')}">更改积分</a>
        </li>
    </ul>
</header>

<section class="wrapper" style="margin-top:0">
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">
                <div class="panel-body">
                    <div class="form">
                        <form class="cmxform form-horizontal tasi-form" id="data-form">

                            <div class="form-group reply-news">
                                <label class="control-label col-lg-2">昵称</label>
                                <div class="col-lg-10">
                                    <select class="form-control m-bot15" name="openid" required="required">
                                        <option value="">请选择</option>
                                        {volist name="vipList" id="vo"}
                                        <option value="{$vo.openid}">{$vo.nickname}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>

                            <div class="form-group reply-news">
                                <label class="control-label col-lg-2">昵称</label>
                                <div class="col-lg-10">
                                    <select class="form-control m-bot15" name="change" required="required">
                                        <option value="1">增加</option>
                                        <option value="2">减少</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="control-label col-lg-2">积分</label>
                                <div class="col-lg-10">
                                    <input class="form-control" type="number" name="integral" required="required" step="0.01" min="0.00"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <input class="btn btn-danger" type="submit" value="提交保存">
                                </div>
                            </div>

                        </form>
                        <input type="hidden" id="do_action" value="{:url('Integral/integraladd')}"/>
                    </div>
                </div>
            </section>
        </div>
    </div>
</section>
{/block}